% !TeX spellcheck = en_US

\chapter*{摘要}

随着移动医疗应用的深入和发展，目前已经有移动护理、移动护送和移动查房等一系列移动医疗应用。在这些应用中，对于移动终端设备上的数字医学影像应用程序的要求已经接近传统桌面工作站的水平。但是移动环境和传统的数字医学影像 应用环境有很多不同，会产生不少问题。比如对于硬件参数来说，移动设备处理器性能有限，解析高分辨率影像需要等待较长时间，影响到用户使用体验。
又比如对于网络环境来说，数字医学影像领域的事实标准——\dicom 协议中的不少服务无法适用于移动无线网络结构，严重影响到了客户端的图像接收功能。
此外移动设备系统平台众多，各种平台之间互不兼容，为每种平台一一实现\dicom 网络服务接口需要耗费大量的时间和精力。

国内外目前存在一些移动\dicom  应用的案例，其中绝大多数是基于HTML技术开发实现的，直接将\dicom 图像包含在HTML网页中，使用浏览器控件进行显示。这中做法能适用于绝大多数移动终端，但是功能有限，只能传输JPEG格式的普通图像，无法像传统\dicom 网络通信那样通过设置各种参数来控制传输方式和图像内容。而且HTML网页技术与传统的\dicom 通信技术设计理念大相径庭，不方便将目前现有的\dicom 应用代码迁移到移动端上去。

在进行设计此系统时，针对这些问题进行了分析，鉴于HTML网页技术是基于HTTP传输协议的，并且HTTP协议在各种移动设备平台都有良好的支持，决定编写\dicom 转 HTTP 代理，以此将\dicom 网络服务以尽可能类似于传统使用方式的样式供给移动应用端使用。\dicom 转 HTTP 代理 基于J2EE技术，
采用\dcmfourche 类库与PACS系统进行基于\dicom 协议的数据通讯。同时利用Spring MVC 框架提供的功能，在处理HTTP请求和应答的时候，可以将\dcmfourche 类库中使用的\dicom 数据字典参数数据格式自动转换为与移动设备客户端进行通讯所使用的JSON数据格式。在此机制上根据临床实际的应用需要，向移动设备提供了非图像信息查询，图像获取与图像上传等REST 风格的Web服务。同时讨论了移动终端如何利用这些服务进行移动客户端开发，给出了示例代码。

另外基于HL7协议的应用系统也大量在临床中运用，并且和\dicom 系统会产生大量的交互。所以在\dicom 转 HTTP代理中，使用HAPI 类库实现了一些HL7 ORM消息服务Web 访问接口，方便了移动设备应用客户端进行预约、登记。

\dicom 转 HTTP代理的实现，丰富了移动临床系统的功能和内容。使得各种平台下的移动设备可以不再关心底层的\dicom 网络服务细节，方便的调用PACS和RIS系统提供的各种服务，提供了移动端设备客户端的开发速度。
在此基础之上实现的临床查房拍照自动归档功能，更是将过去的拍照、整理、归档操作进行了简化，使之能够一步完成，让临床一线的医务人员能有更多的时间投入到实际的为病人服务的工作中去。

%\rule{0pt}{0pt} 

{\heiti 关键词}  \quad  \dicom 、 \dcmfourche、超文本传输协议、JSON。  

\clearpage

\chapter*{Abstract}

With the development of mobile medical application, currently Some medical institutions have some mobile medical applications such as mobile nursing, mobile escort and mobile rounds. In these applications, the requirements of digital medical imaging processing  has been close to the traditional desktop workstation level. But there are many different between the mobile environment and traditional environment,which will have many problems. For example, for the hardware parameters, the processor performance of mobile equipment is not high, which will make user to wait a lot to analysis of high resolution image.

Another example for the network environment, the fact standard of digital medical image field -- \dicom protocol is not suitable for mobile wireless network structure, which will influence the client application to receive image.

In addition, the mobile device system platform is numerous. Various platforms  are not compatible with each other. To develop mobile \dicom network application for each platforms will need to spend a lot of time and energy.

The domestic and foreign present some mobile \dicom application cases, most of them are implemented based on HTML technology development,  \dicom images is included in the HTML Webpage, use the browser controls to display. This approach can be applied to most of the mobile terminal, but the function is limited. It only can display JPEG format image , not like the traditional \dicom network communication that by setting various parameters to control the transmission mode and image content. And the design idea of HTML web technology and the traditional \dicom communication technology is widely divergent, which make developer can convenient  the existing \dicom application code migration to the mobile platform.

In the process of design of the system, becase of the HTML web technology is based on HTTP protocol, and HTTP protocol have good support in various mobile platforms, I decided to write \dicom to HTTP proxy, which will supply \dicom network service to  mobile application. \dicom to HTTP proxy is based on J2EE technology, it use the \dcmfourche class library to deal with the data communication with Pacs.
 At the same time  use the functions provided by the Spring MVC framework  to automatically convert  the HTTP request and response to \dicom data dictionary. On the basis of \dicom to HTTP proxy,  the mobile device can use some \dicom network service, such as  non image information query, image acquisition and image upload etc. And the thesis also gives some code  to used to illustrate how to use the proxy.

In addition, there is much system using HL7 protocol in medical institutions. And the system  also has data communication with  \dicom protocol. So in the \dicom to HTTP proxy, I use the HAPI class library to develop some of the HL7 ORM message web service.

The \dicom  to HTTP proxy, Added function and content to  mobile application. It allows the mobile device of different platforms don't need to  care about the underlying service details of \dicom network, and it make using the service of Pacs and Ris  easily.

The camera function make shotting and archiving in one step, which let the first-line clinical medical personnel can have more time to devote to the actual service for the patient to work.

\rule{0pt}{0pt} 

{\bf Keywords:} \quad  \dicom 、 \dcmfourche 、HTTP、JSON。  